package com.imooc.ad.constant;

/**
 * 响应结果枚举
 * Created by lzq on 2019/2/17
 */
public enum ResponseCode {


    SUCCESS(0, "SUCCESS"),
    ERROR(1, "ERROR"),
    NEED_LOGIN(10, "NEED_LOGIN"),
    ILLEGAL_ARGUMENT(2, "ILLEGAL_ARGUMENT");
    public final int code;
    public final String msg;

    ResponseCode(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }
}
